package com.whitlock.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whitlock.backend.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Whitlock
 * @date 2020/7/9   10:41 上午
 */
@Data
@TableName("tk_role")
public class TKRole extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id", name = "id",hidden = true)
    private String id;

    @ApiModelProperty(value = "角色名", name = "roleName")
    private String roleName;

    @ApiModelProperty(value = "角色描述", name = "roleDesc")
    private String roleDesc;

    @ApiModelProperty(value = "角色权限列表", name = "permissionList")
    @TableField(exist = false)
    private List<TKPermission> permissionList;
}
